A, An, and The, out of Alphabetical order - Mailing list pgsql-sql

From lynch@lscorp.com (Richard Lynch)
Subject A, An, and The, out of Alphabetical order
Date
Msg-id v02140b09b1c466b85629@[207.152.64.133]
Whole thread Raw
List pgsql-sql
I probably need a whole new column for alphabetical ordering, but...

I want something like this for now (I think):

select band, ltrim(band, 'THE ') as alpha from bands order by alpha;

except I only want a match on 'THE ', not any any character within it,
which is what ltrim does...

Is there something like what I want that's easy to do?
[If it's way hard, I'll just add a column.]

--
--
-- "TANSTAAFL" Rich lynch@lscorp.com



pgsql-sql by date:

Previous
From: Ludovic Marcotte
Date:
Subject: select w/Swing's JTable widget
Next
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] select w/Swing's JTable widget